package gui.dialog;

import javax.swing.JOptionPane;

/*
 * This class displays the Error dialog.
 * It's used where an error can occur.
 */
public class ErrorDialog extends JOptionPane {

    public ErrorDialog(String message) {
        super.showMessageDialog(null,
                message,
                "Error",
                super.ERROR_MESSAGE);
        System.exit(0);
    }
}
